#include <iostream>
#include <bits/stdc++.h>

using namespace std;
using ll = long long int;
string s;
bool check(ll num)
{
    
    if (num == 1||num==0) return false;
    for (ll i = 2; i <= sqrt(num); i++)
    {
        if (num %= i == 0)
            return false;
    }
    return true;
}
int main()
{
    cin >> s;
    ll m[26] = { 0 };
    for (int i = 0; i < s.size(); i++)
    {
        m[s[i] - 'a']++;
    }
    ll maxcount = 0;
    ll mincount = 0x3f3f3f3f3f3f3f3f;
    for (int i = 0; i < 26; i++)
    {
        if (m[i] == 0) continue;
        maxcount = max(maxcount, m[i]);
        mincount = min(mincount, m[i]);
    }

    if (check(maxcount - mincount))
    {
        cout << "Lucky Word" << endl;
        cout << maxcount - mincount << endl;
    }
    else
    {
        cout << "No Answer" << endl;
        cout << 0 << endl;
    }
}
// 64 位输出请用 printf("%lld")